{% extends "base.html" %}
    {% block control %}<li class="treeview active">{% endblock %}
                 {% block cache %}
        <li class="treeview active">
              <a href="#"><i class="fa fa-television"></i> <span>缓存刷新</span> <i class="fa fa-angle-left pull-right"></i></a>
              <ul class="treeview-menu">
                                  {% block filecache %}<li class="active"><a href="/filecache/"><i class="fa fa-genderless"></i>文件刷新</a></li>{% endblock %}
                                  {% block dircache %}<li><a href="/dircache/"><i class="fa fa-genderless"></i>目录刷新</a></li>{% endblock %}
                                </ul>
            </li>
                  {% endblock %}
      <!-- Content Wrapper. Contains page content -->
             {% block content %}

          <ol class="breadcrumb">
            <li><i class="fa fa-television"></i> 管理中心</li>
            <li class="active">文件刷新</li>
          </ol>

        <!-- Main content -->
        <section class="content">


              <div class="box">
                <div class="box-header">
                  <h3 class="box-title">文件刷新</h3>
                  <!-- tools box -->

                </div><!-- /.box-header -->
                <div class="box-body pad">
                 <form class="form-horizontal" method="post">
                  {% csrf_token %}
                             <div class="form-group">
                                 <div class="col-sm-1 control-label">
                             {{ form_info.task_name.label_tag }}</div>
                                 <div class="col-sm-1">
                                     {{ form_info.task_name}}
                                  </div>
                             </div>
                             <div class="form-group">
                                 <div class="col-sm-1 control-label">
                             {{ form_info.task_description.label_tag }}</div>
                                 <div class="col-sm-4" >
                                     {{ form_info.task_description }}
                                  </div>
                             </div>
                              <div class="form-group">
                                 <div class="col-sm-1 control-label">区域列表：</div>
                                 <div class="col-sm-4" >
                                    {% for group in group_list %}
                                        <label><input name="nodegroup" type="radio" value={{ group.id }} />{{ group.nodegroup_name }} </label>
                                     {% endfor %}
                                  </div>
                             </div>
                             <div class="form-group">
                                 <div class="col-sm-1 control-label">
                             {{ form_info.task_url.label_tag }}</div>
                                 <div class="col-sm-1">
                                     {{ form_info.task_url }}
                                  </div>
                             </div>
                     <div class="form-group">
                         <div class="col-sm-4 col-sm-push-2">
                     <button type="submit" class="btn btn-primary">
                      添加
                      </button>
                             </div>
                       </div>
                   </form>
              </div>
              </div>
         </section>
    {% endblock %}

  {% block js %}
  {% endblock %}
